import api from '@/fetch/api'

export default{
  data () {
    return {
      title: '',
      value: '',
      note_id: '',
    }
  },
  methods: {
    save () {
      api.post('note/add', {
        title: this.title,
        value: this.value,
        id: this.note_id
      }).then(data => {
        let { note_id } = data.data
        this.note_id = note_id
      })
    }
  }
}